Crate bitcoin_compat

source ·

Macros

Structs

Enums

Constants

Functions

  • | We can’t use cpuid.h’s __get_cpuid | as it does not support subleafs. |
  • | trigger: use list::push_back and list::pop_back | to trigger _M_hook and _M_unhook. | | test: Push a sequence of integers into | a list. Pop them off and verify that they match | the original sequence.
  • | trigger: string::at(x) on an empty string to | trigger __throw_out_of_range_fmt. | | test: force std::string to throw an | out_of_range exception. Verify that it’s | caught correctly.
  • | trigger: use ctype::widen to trigger | ctype::_M_widen_init(). | | test: convert a char from narrow to wide and | back. Verify that the result matches the | original.
  • https://stackoverflow.com/questions/1413445/reading-a-password-from-stdcin
  • | Force the current thread (and threads created | from the current thread) into | a restricted-service operating mode where only | a subset of all syscalls are available. | | Subsequent calls to this function can reduce | the abilities further, but abilities can never | be regained. | | This function is a no-op unless | SetupSyscallSandbox(…) has been called. | | SetupSyscallSandbox(…) is called during | bitcoind initialization if Bitcoin Core was | compiled with seccomp-bpf support | (–with-seccomp) and the parameter | -sandbox= was passed to bitcoind. | | This experimental feature is available under | Linux x86_64 only.

Type Definitions